crypto/tls.Config.rand (method)
22 uses
crypto/tls (current package)
common.go#L887: if _, err := io.ReadFull(c.rand(), c.SessionTicketKey[:]); err != nil {
common.go#L949: if _, err := io.ReadFull(c.rand(), newKey[:]); err != nil {
common.go#L993: func (c *Config) rand() io.Reader {
conn.go#L1021: outBuf, err = c.out.encrypt(outBuf, data[:m], c.config.rand())
handshake_client.go#L112: _, err := io.ReadFull(config.rand(), hello.random)
handshake_client.go#L124: if _, err := io.ReadFull(config.rand(), hello.sessionId); err != nil {
handshake_client.go#L152: key, err = generateECDHEKey(config.rand(), curveID)
handshake_client.go#L703: certVerify.signature, err = key.Sign(c.config.rand(), signed, signOpts)
handshake_client_tls13.go#L243: key, err := generateECDHEKey(c.config.rand(), curveID)
handshake_client_tls13.go#L680: sig, err := cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server.go#L206: _, err := io.ReadFull(c.config.rand(), serverRandom)
handshake_server_tls13.go#L133: if _, err := io.ReadFull(c.config.rand(), hs.hello.random); err != nil {
handshake_server_tls13.go#L218: key, err := generateECDHEKey(c.config.rand(), selectedGroup)
handshake_server_tls13.go#L707: sig, err := hs.cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server_tls13.go#L861: _, err = c.config.rand().Read(ageAdd)
key_agreement.go#L64: preMasterSecret, err := priv.Decrypt(config.rand(), ciphertext, &rsa.PKCS1v15DecryptOptions{SessionKeyLen: 48})
key_agreement.go#L85: _, err := io.ReadFull(config.rand(), preMasterSecret[2:])
key_agreement.go#L94: encrypted, err := rsa.EncryptPKCS1v15(config.rand(), rsaKey, preMasterSecret)
key_agreement.go#L185: key, err := generateECDHEKey(config.rand(), curveID)
key_agreement.go#L233: sig, err := priv.Sign(config.rand(), signed, signOpts)
key_agreement.go#L300: key, err := generateECDHEKey(config.rand(), curveID)
ticket.go#L330: if _, err := io.ReadFull(c.rand(), iv); err != nil {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |